package demoStudent;
/*
定义学生类
信息包含：学生学号，学生姓名，学生性别，学生的出生日期，学生的班级，学生联系方式
 */
public class Student {
    private int ID;
    private String name;
    private String gender;
    private String  birth;
    private String cls;
    private int numphone;

    public Student() {
    }

    public Student(int ID, String name, String gender, String birth, String cls, int numphone) {
        this.ID = ID;
        this.name = name;
        this.gender = gender;
        this.birth = birth;
        this.cls = cls;
        this.numphone = numphone;
    }

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getBirth() {
        return birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    public String getCls() {
        return cls;
    }

    public void setCls(String cls) {
        this.cls = cls;
    }

    public int getNumphone() {
        return numphone;
    }

    public void setNumphone(int numphone) {
        this.numphone = numphone;
    }

    @Override
    public String toString() {
        return "Student{" +
                "ID=" + ID +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", birth='" + birth + '\'' +
                ", cls='" + cls + '\'' +
                ", numphone=" + numphone +
                '}';
    }
}
